import {useDispatch, useSelector} from "react-redux";
import {AppState} from "../index";
import {updateLogo} from "./action";

export function useLogo(): string {
  return useSelector((state: AppState) => state.logoaction.logo);
}

export function useUpdateLogo(logo:string){
  const dispatch = useDispatch();
  dispatch(updateLogo({logo}));
}
